import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
import * as echarts from 'echarts'


//全局组件：按钮
import buttonOne from './components/button/buttonOne/buttonOne.vue'
import buttonTwo from './components/button/buttonOne/buttonTwo.vue'
import buttonThree from './components/button/buttonOne/buttonThree.vue'

//灯
import lamp from './components/lamp/lamp.vue'

//雪
import snow from './components/snow/snow.vue'

import Video from 'video.js'
import 'video.js/dist/video-js.css'


const app = createApp(App)
installElementPlus(app)
app.config.globalProperties.$video = Video
app.config.globalProperties.echarts = echarts;

//按钮
app.component('buttonOne',buttonOne)
app.component('buttonTwo',buttonTwo)
app.component('buttonThree',buttonThree)
app.component('lamp',lamp)
app.component('snow',snow)
app.use(router).mount('#app')

